package com.mall.dao;

import com.mall.domain.ItemGoods;
import com.mall.domain.ListSeacher;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IItemGoodsDao {
   /*
   查询商品列表信息
   * */

    @Select("select * from tb_item_goods where cat_id=#{listSeacher.cid} limit #{listSeacher.pagenum},#{listSeacher.pagesize}")
    List<ItemGoods> findListGoods(@Param("listSeacher") ListSeacher listSeacher);

}
